package com.ruoyi.wetest.stats.metrics;

import com.codahale.metrics.Clock;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @author Allen
 * @description TODO
 * @Date 2024/5/7 19:54
 */
public class WeTestTimeClock extends Clock {

    private final AtomicLong lastUpdateTime;

    public WeTestTimeClock(AtomicLong lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }


    @Override
    public long getTick() {
        return lastUpdateTime.get();
    }
}
